package com.hzit.bj1804.dian.entity;

import java.io.Serializable;
import java.math.BigDecimal;

/**
 * MEMBERPAY
 * @author 
 */
public class Memberpay implements Serializable {
    private BigDecimal memberid;

    private String cardnumber;

    private String cardholdername;

    private String idtype;

    private String idnumber;

    private static final long serialVersionUID = 1L;

    public BigDecimal getMemberid() {
        return memberid;
    }

    public void setMemberid(BigDecimal memberid) {
        this.memberid = memberid;
    }

    public String getCardnumber() {
        return cardnumber;
    }

    public void setCardnumber(String cardnumber) {
        this.cardnumber = cardnumber;
    }

    public String getCardholdername() {
        return cardholdername;
    }

    public void setCardholdername(String cardholdername) {
        this.cardholdername = cardholdername;
    }

    public String getIdtype() {
        return idtype;
    }

    public void setIdtype(String idtype) {
        this.idtype = idtype;
    }

    public String getIdnumber() {
        return idnumber;
    }

    public void setIdnumber(String idnumber) {
        this.idnumber = idnumber;
    }

    @Override
    public boolean equals(Object that) {
        if (this == that) {
            return true;
        }
        if (that == null) {
            return false;
        }
        if (getClass() != that.getClass()) {
            return false;
        }
        Memberpay other = (Memberpay) that;
        return (this.getMemberid() == null ? other.getMemberid() == null : this.getMemberid().equals(other.getMemberid()))
            && (this.getCardnumber() == null ? other.getCardnumber() == null : this.getCardnumber().equals(other.getCardnumber()))
            && (this.getCardholdername() == null ? other.getCardholdername() == null : this.getCardholdername().equals(other.getCardholdername()))
            && (this.getIdtype() == null ? other.getIdtype() == null : this.getIdtype().equals(other.getIdtype()))
            && (this.getIdnumber() == null ? other.getIdnumber() == null : this.getIdnumber().equals(other.getIdnumber()));
    }

    @Override
    public int hashCode() {
        final int prime = 31;
        int result = 1;
        result = prime * result + ((getMemberid() == null) ? 0 : getMemberid().hashCode());
        result = prime * result + ((getCardnumber() == null) ? 0 : getCardnumber().hashCode());
        result = prime * result + ((getCardholdername() == null) ? 0 : getCardholdername().hashCode());
        result = prime * result + ((getIdtype() == null) ? 0 : getIdtype().hashCode());
        result = prime * result + ((getIdnumber() == null) ? 0 : getIdnumber().hashCode());
        return result;
    }

    @Override
    public String toString() {
        StringBuilder sb = new StringBuilder();
        sb.append(getClass().getSimpleName());
        sb.append(" [");
        sb.append("Hash = ").append(hashCode());
        sb.append(", memberid=").append(memberid);
        sb.append(", cardnumber=").append(cardnumber);
        sb.append(", cardholdername=").append(cardholdername);
        sb.append(", idtype=").append(idtype);
        sb.append(", idnumber=").append(idnumber);
        sb.append(", serialVersionUID=").append(serialVersionUID);
        sb.append("]");
        return sb.toString();
    }
}